import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// 引入路由
import router from './router';
import { Button, Slider } from 'vant';
import ProList from "./components/proList.vue"
// 2. 引入组件样式
import 'vant/lib/index.css';
import { Icon } from 'vant';
import { IndexBar, IndexAnchor } from 'vant';
import { Swipe, SwipeItem, Overlay, Form, Field, CellGroup, Toast, Dialog } from 'vant';
//引入全局组件
import components from "./utils/components";
const app = createApp(App)
//注册
app.use(router)
app.use(Button)
app.use(Slider)
app.use(Icon)
app.use(IndexBar)
app.use(IndexAnchor)
app.use(Swipe)
app.use(SwipeItem)
app.use(Overlay)
app.use(components);
app.use(Field);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Toast)
app.use(Dialog)
// 全局组件
app.component("ProList", ProList)
app.mount('#app')
